package com.zjff.mobiletwo.entity;

import lombok.Data;

import javax.validation.constraints.Size;

//用户实体类
@Data
public class UserEntity{
    private String id;
    private String username;
    @Size(min = 6, message = "密码长度不能小于6！")
    private String password;
    private String salt;
    private String email;
    private String phone;
    private String avatar;
    private String pname;
    private int gender;
    private String text;
    public String getId(){
        return  id;
    }
    public String getEmail(){
        return  email;
    }
    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
    public String getPhone() {
        return phone;
    }
}
